-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update: analyticdb+postgresql vectore #74
Conversation
Please run |
|
||
private RedisClientService redisClientService ; | ||
|
||
public static AnalyticdbVector getInstance(String collectionName, AnalyticdbConfig config) throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to declare AnalyticdbVector as a spring bean?
}catch(Exception e){ | ||
logger.debug("create Analyticdb client error", e); | ||
} | ||
initialize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initialization can be moved to afterPropertiesSet
method.
* @author HeYQ | ||
* @version 1.0 | ||
* @ date 2024-10-23 20:29 | ||
* @ describe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use @since
instead. Delete @ describe
if there's no actual description
} | ||
} | ||
|
||
public void create(List<Document> texts, List<List<Double>> embeddings) throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is unnecessary, we should follow the interface pattern defined in VectoreStore by spring-ai.
pull once again |
Describe what this PR does / why we need it
Does this pull request fix one issue?
Describe how you did it
add analyticdb api
Describe how to verify it
use springboot test
Special notes for reviews